/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_log_trazabilidadDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression lt_id_registro_trans;
	public final TimestampExpression lt_fecha_hora_in;
	public final StringExpression lt_id_ruta;
	public final StringExpression lt_id_bitacora_ruta;
	public final StringExpression lt_id_ruta_programada;
	public final DoubleExpression lt_sesion_hora_creada;
	public final DoubleExpression lt_sesion_hora_expira;
	public final StringExpression lt_token;
	
	public Tbv_log_trazabilidadDetachedCriteria() {
		super(orm.Tbv_log_trazabilidad.class, orm.Tbv_log_trazabilidadCriteria.class);
		lt_id_registro_trans = new IntegerExpression("lt_id_registro_trans", this.getDetachedCriteria());
		lt_fecha_hora_in = new TimestampExpression("lt_fecha_hora_in", this.getDetachedCriteria());
		lt_id_ruta = new StringExpression("lt_id_ruta", this.getDetachedCriteria());
		lt_id_bitacora_ruta = new StringExpression("lt_id_bitacora_ruta", this.getDetachedCriteria());
		lt_id_ruta_programada = new StringExpression("lt_id_ruta_programada", this.getDetachedCriteria());
		lt_sesion_hora_creada = new DoubleExpression("lt_sesion_hora_creada", this.getDetachedCriteria());
		lt_sesion_hora_expira = new DoubleExpression("lt_sesion_hora_expira", this.getDetachedCriteria());
		lt_token = new StringExpression("lt_token", this.getDetachedCriteria());
	}
	
	public Tbv_log_trazabilidadDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_log_trazabilidadCriteria.class);
		lt_id_registro_trans = new IntegerExpression("lt_id_registro_trans", this.getDetachedCriteria());
		lt_fecha_hora_in = new TimestampExpression("lt_fecha_hora_in", this.getDetachedCriteria());
		lt_id_ruta = new StringExpression("lt_id_ruta", this.getDetachedCriteria());
		lt_id_bitacora_ruta = new StringExpression("lt_id_bitacora_ruta", this.getDetachedCriteria());
		lt_id_ruta_programada = new StringExpression("lt_id_ruta_programada", this.getDetachedCriteria());
		lt_sesion_hora_creada = new DoubleExpression("lt_sesion_hora_creada", this.getDetachedCriteria());
		lt_sesion_hora_expira = new DoubleExpression("lt_sesion_hora_expira", this.getDetachedCriteria());
		lt_token = new StringExpression("lt_token", this.getDetachedCriteria());
	}
	
	public Tbv_usuarioDetachedCriteria createTbv_usuarious_id_usuarioCriteria() {
		return new Tbv_usuarioDetachedCriteria(createCriteria("tbv_usuarious_id_usuario"));
	}
	
	public Tbv_log_trazabilidad uniqueTbv_log_trazabilidad(PersistentSession session) {
		return (Tbv_log_trazabilidad) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_log_trazabilidad[] listTbv_log_trazabilidad(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_log_trazabilidad[]) list.toArray(new Tbv_log_trazabilidad[list.size()]);
	}
}

